<?php
$contacts = new Table('contacts');
$contacts->select(" `$contacts->table`.`status` = 'ON' ");

$_tpl->set(array(
	'contacts' => get_table_data($contacts)
));
?>